//created by: Justina Lee

Ext.define('MajorProjectSenchaTouch.controller.Override', {
    extend: 'Ext.app.Controller',
    
/*
|--------------------------------------------------------------------------
| onScrollEndHide, onScrollEndBlank (@author : Justina Lee)
|--------------------------------------------------------------------------
|
| Override onScrollEnd event to hide/not hide indicator.
|
*/
    onScrollEndHide: function(scroller){
        Ext.override(Ext.util.ScrollView, {
            onScrollEnd: function() {
                scroller.hideIndicators();
            }
        });
    },
    onScrollEndBlank: function(){
        Ext.override(Ext.util.ScrollView, {
            onScrollEnd: function() {
                return;
            }
        });
    }
});

